﻿using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace Kaiser.Attributes
{
    [DataContract]
    [AttributeUsage(AttributeTargets.All)]
    public class DescriptionEnumAttribute : DescriptionAttribute
    {
 

        [DataMember]
        public string ParentName { get; set; }

        [DataMember]
        public new string Description { get { return base.Description; } set { DescriptionValue = value; } }

        [DataMember]
        public string TableName { get; set; }

        [DataMember]
        public string DbColumnName { get; set; }

        [DataMember]
        public long Value { get; set; }
        //[DataMember]
        //public bool HasChildren { get; set; }

        ///// <summary>
        ///// 在枚举类上说明是否分组
        ///// </summary>
        //[DataMember]
        //public bool DivideIntoGroup { get; set; }

        ///// <summary>
        ///// 在结构字段上说明是否只有单独子节点
        ///// </summary>
        //[DataMember]
        //public bool SingleChildLeaf { get; set; }
    }
}
